package cn.hp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

import cn.hp.domain.Student;

@Configuration
public class StudentConfig {

	@Bean
	@Profile(value={"dev"})
	public Student getStudent1() {
		return new Student(1,"1-1");
	}
	@Bean
	@Profile(value={"pro"})
	public Student getStudent2() {
		return new Student(2,"2-1");
	}
	@Bean
	@Profile(value={"test"})
	public Student getStudent3() {
		return new Student(3,"3-1");
	}
}
